﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BugSysSolution.TestPages
{
    public partial class PageB : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn1_Click(object sender, EventArgs e)
        {
            //<link href='../Javascript/jquery-ui-1.8.23.custom.css' rel='stylesheet' />
            //    <script src='../Javascript/jquery-ui-1.8.23.custom.min.js'></script>
            //    <script src='../Javascript/jquery-1.8.0.min.js'></script>
            Response.Write(@"
<script>
window.onload = function () {
var divList = document.getElementsByTagName('div');
for (var i = 0; i < divList.length; i++) {
if (divList[i].getAttribute('role') == 'dialog') {
divList[i].style.display='none';}}
function getfun(){window.parent.window.hiddendiv('" + this.txt1.Text + @"');}
    getfun();}
</script>");
        }
    }
}